package service

import (
	"context"
	"github.com/aphasia51/website/internal/domain"
	"github.com/aphasia51/website/internal/repository"
)

type EquipmentService struct {
	repo *repository.EquipmentRepository
}

func NewEquipmentService(repo *repository.EquipmentRepository) *EquipmentService {
	return &EquipmentService{
		repo: repo,
	}
}

func (svc *EquipmentService) Query(ctx context.Context, a domain.Equipment) ([]domain.Equipment, error) {
	return svc.repo.Query(ctx, a)
}

func (svc *EquipmentService) Select(ctx context.Context) ([]domain.Equipment, error) {
	return svc.repo.Select(ctx)
}
